//--------------------------------------
// silk-editor-plugin Project
//
// SilkDocumentSetup.java
// Since: 2010/11/15
//
// $URL$ 
// $Author$
//--------------------------------------
package org.xerial.silk.editor.plugin.text;

import org.eclipse.core.filebuffers.IDocumentSetupParticipant;
import org.eclipse.jface.text.IDocument;
import org.xerial.silk.editor.plugin.SilkPlugin;

public class SilkDocumentSetup implements IDocumentSetupParticipant
{
    public void setup(IDocument document) {
        SilkTextTools tools = SilkPlugin.getDefault().getTextTools();
        tools.setupDocumentPartitioner(document, SilkPartitions.SILK_PARTITIONING);
    }

}
